package com.hlf.modules.wechat.model;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Administrator
 * @tableName t_tk_config_wechat
 * @date 2017-07-07
 */
public class ConfigWechat implements Serializable {
    /**  */
    private Long id;

    /**
     * 代理商ID
     */
    private Long topAgentId;

    /**
     * 原始id
     */
    private String originalId;

    /**
     * 公众号id
     */
    private String appId;

    /**
     * 应用秘钥
     */
    private String appSecret;

    /**
     * 公众号名称
     */
    private String name;

    /**
     * 微信token
     */
    private String token;

    /**
     * 域名
     */
    private String domain;

    /**
     * 授权连接URL
     */
    private String oauth2Url;

    /**
     * 更新微信用户信息间隔时间
     */
    private Integer fatchWechatUserInterval;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 创建者，如果为系统初始数据填0
     */
    private Long insertBy;

    /**
     * 创建时间
     */
    private Date insertDate;

    /**
     * 最后更新者，如果为系统初始数据填0
     */
    private Long lastUpdateBy;

    /**
     * 最后更新时间
     */
    private Date lastUpdateDate;

    /**
     * 逻辑删除标记（1：显示；0：删除）
     */
    private Integer delFlag;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTopAgentId() {
        return topAgentId;
    }

    public void setTopAgentId(Long topAgentId) {
        this.topAgentId = topAgentId;
    }

    public String getOriginalId() {
        return originalId;
    }

    public void setOriginalId(String originalId) {
        this.originalId = originalId == null ? null : originalId.trim();
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId == null ? null : appId.trim();
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret == null ? null : appSecret.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token == null ? null : token.trim();
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain == null ? null : domain.trim();
    }

    public String getOauth2Url() {
        return oauth2Url;
    }

    public void setOauth2Url(String oauth2Url) {
        this.oauth2Url = oauth2Url == null ? null : oauth2Url.trim();
    }

    public Integer getFatchWechatUserInterval() {
        return fatchWechatUserInterval;
    }

    public void setFatchWechatUserInterval(Integer fatchWechatUserInterval) {
        this.fatchWechatUserInterval = fatchWechatUserInterval;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Long getInsertBy() {
        return insertBy;
    }

    public void setInsertBy(Long insertBy) {
        this.insertBy = insertBy;
    }

    public Date getInsertDate() {
        return insertDate;
    }

    public void setInsertDate(Date insertDate) {
        this.insertDate = insertDate;
    }

    public Long getLastUpdateBy() {
        return lastUpdateBy;
    }

    public void setLastUpdateBy(Long lastUpdateBy) {
        this.lastUpdateBy = lastUpdateBy;
    }

    public Date getLastUpdateDate() {
        return lastUpdateDate;
    }

    public void setLastUpdateDate(Date lastUpdateDate) {
        this.lastUpdateDate = lastUpdateDate;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "ConfigWechat{" +
                "id=" + id +
                ", topAgentId=" + topAgentId +
                ", originalId='" + originalId + '\'' +
                ", appId='" + appId + '\'' +
                ", appSecret='" + appSecret + '\'' +
                ", name='" + name + '\'' +
                ", token='" + token + '\'' +
                ", domain='" + domain + '\'' +
                ", oauth2Url='" + oauth2Url + '\'' +
                ", fatchWechatUserInterval=" + fatchWechatUserInterval +
                ", remarks='" + remarks + '\'' +
                ", insertBy=" + insertBy +
                ", insertDate=" + insertDate +
                ", lastUpdateBy=" + lastUpdateBy +
                ", lastUpdateDate=" + lastUpdateDate +
                ", delFlag=" + delFlag +
                '}';
    }
}